package com.dosen.api.thought.core.service.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dosen.api.common.result.page.PageUtils;
import com.dosen.api.common.result.page.Query;
import com.dosen.api.thought.core.service.dao.SearchConsciousnessDao;
import com.dosen.api.thought.core.service.entity.SearchConsciousnessEntity;
import com.dosen.api.thought.core.service.service.SearchConsciousnessService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("searchConsciousnessService")
public class SearchConsciousnessServiceImpl extends ServiceImpl<SearchConsciousnessDao, SearchConsciousnessEntity> implements SearchConsciousnessService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SearchConsciousnessEntity> page = this.page(
                new Query<SearchConsciousnessEntity>().getPage(params),
                new QueryWrapper<SearchConsciousnessEntity>()
        );

        return new PageUtils(page);
    }

}
